package cn.xy.ymcc.feign;

import cn.xy.ymcc.domain.MessageEmail;
import cn.xy.ymcc.result.JSONResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(value="service-commom",fallbackFactory = SendMessageFeignClientfallback.class)
public interface SendMessageFeignClient {

    @RequestMapping(value="/messageEmail/save",method= RequestMethod.POST)
    JSONResult save(@RequestBody MessageEmail messageEmail);
}